package com.annotation.service;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;

@Service
public class TestAnnotationEventListener {

    @EventListener(classes = {ApplicationEvent.class})
    public void customerListen(ApplicationEvent  applicationEvent){
        System.out.println("TestAnnotationEventListener  的自定义customerListen 监听器收到事件 :"+applicationEvent.toString() );
    }

}
